package com.biz.primus.ms.tms.trans;

import com.biz.primus.model.cat.vo.CatVo;
import com.biz.primus.ms.tms.dao.po.Cat;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

import javax.annotation.Nullable;

/**
 * @author yanweijin
 * @date 2017/9/12
 */
public class CatVoToCat implements Function<CatVo, Cat> {
	@Nullable
	@Override
	public Cat apply(CatVo vo) {
		Cat cat = new Cat();
		BeanUtils.copyProperties(vo,cat);
		return cat;
	}
}
